﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class WebCommon_PopUpRedirect : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int _planType = Utility.HttpHelp.getParamsInt("PlanType");
        string _url = "";
        //待审核年计划
        if (_planType == 1)
        {
            _url = "/QuarterPlan/NoEvaluateQuarterPlanForPopUp.aspx";
            Page.RegisterStartupScript("windowsopen", "<script language=javascript>history.back();;window.open('" + _url + "','newwindow','height=400,width=900,top=120,left=70,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');</script>");
        }
        //待审核月计划
        if (_planType == 2)
        {
            _url = "/Month/NoVerifyMonthPlanForPopUp.aspx";
            Page.RegisterStartupScript("windowsopen", "<script language=javascript>history.back();;window.open('" + _url + "','newwindow','height=400,width=900,top=120,left=70,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');</script>");
        }
        //待审核周计划
        if (_planType == 3)
        {
            _url = "/Week/NoEvaluateWeekPlanForPopUp.aspx";
            Page.RegisterStartupScript("windowsopen", "<script language=javascript>history.back();;window.open('" + _url + "','newwindow','height=400,width=900,top=120,left=70,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');</script>");
        }
        //待评估年计划
        if (_planType == 4)
        {
            _url = "/QuarterPlan/NoEvaluateQuarterPlanForPopUp.aspx?type=0";
            Page.RegisterStartupScript("windowsopen", "<script language=javascript>history.back();;window.open('" + _url + "','newwindow','height=400,width=900,top=120,left=70,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');</script>");
        }
        //待评估月计划
        if (_planType == 5)
        {
            _url = "/Month/NoVerifyMonthPlanForPopUp.aspx?type=0";
            Page.RegisterStartupScript("windowsopen", "<script language=javascript>history.back();;window.open('" + _url + "','newwindow','height=400,width=900,top=120,left=70,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');</script>");
        }
        //待评估周计划
        if (_planType == 6)
        {
            _url = "/Week/NoEvaluateWeekPlanForPopUp.aspx?type=0";
            Page.RegisterStartupScript("windowsopen", "<script language=javascript>history.back();;window.open('" + _url + "','newwindow','height=400,width=900,top=120,left=70,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');</script>");
        }
    }
}
